package org.gwc.pojo;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * projectName: com.atguigu.pojo
 *
 * @author: 赵伟风
 * description:
 */

@Data
public class Person {
    /**
     * 字符串 @NotBlank
     * 集合 @NotEmpty
     * 包装 @NotNull
     */
    @NotBlank
    private String name;
    @Min(18)
    private int age;
    @Length(min = 1, max = 2)
    private String gender;
}
